package cn.kgc.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 课工场
 * @date 2024/1/3
 * @description
 */
@RestController
@RequestMapping("scores")
public class ScoreController {

    @Value("${server.port}")
    private String port;

    @GetMapping("m1")
    public String  method1(){

        return "invoke scoreService method1  ok port:"+port;
    }

    @GetMapping("m2")
    public String  method2(String color){

        return "invoke scoreService method2 ok port:"+port+"color="+color;
    }
}
